package com.is2.patchinglife.util;

import java.util.Hashtable;

import android.telephony.TelephonyManager;

public class SensorValues{
	
	private static Hashtable<String,Double> values;
	
	private SensorValues(){}
	
	public static Hashtable<String,Double> getInstance(){
		if(values==null)
			values = new Hashtable<String,Double>();
			values.put("accX",0.0);
			values.put("accY",0.0);
			values.put("accZ",0.0);
			values.put("light",50.0);
			values.put("prox",9.0);
			values.put("OLDtel",(double) TelephonyManager.CALL_STATE_IDLE);
			values.put("NEWtel",(double) TelephonyManager.CALL_STATE_IDLE);
		return values;
	}

	public static void setValue(String _key,double _val){values.put(_key,_val);}
	public static double getValue(String _key){return values.get(_key);}
		
}